<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<!--<h1 th:each="users:${user}" th:text="${users}"></h1>-->
<form th:action="@{/login}"  method="post">
    <input type="text" placeholder="请输入用户名" name="loginname" /> <br/><br>
    <input type="password" placeholder="请输入密码" name="password"/> <br/>
    <!-- 	<button  type="button" class="btn">登录</button><br> <br> -->
    <input type="submit" value="登录"/>
    <a th:href="@{/templates/regist}">没有试过？立即注册</a> <br/>
</form>
<!--<script type="text/javascript">-->
<!--    var msg = '${msg}';-->
<!--    if (msg != null && msg.length > 0){-->
<!--        alert(msg);-->
<!--    }-->

<!--</script>-->
</body>
</body>
</html>